<!DOCTYPE html>
<!-- saved from url=(0040)http://gaokao.nercel.com/compare/college -->
<html lang="en" data-server-rendered="true" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>院校对比 - 考必胜</title>
    <meta name="keywords">
    <meta name="description">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
    <link rel="shortcut icon" href="http://gaokao.nercel.com/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="../static/css/regist/registerone.css" data-th-href="@{/css/regist/registerone.css}">
    <link rel="stylesheet" href="../static/css/compare/compare.css" data-th-href="@{/css/compare/compare.css}">
    <script type="text/javascript" src="/js/jquery.min.js"></script>
    <script type="text/javascript" src="/js/jquery-3.5.1.js"></script>

</head>
    <body>
    <div data-v-1b705696=""  id="app">
        <div class="main">
            <div user-info="userInfo" class="top-header">
                <div class="top">
                    <div class="container">
                        <div class="left">
                            欢迎访问考必胜，填出美好未来！
                        </div>
                        <ul class="right">
                            <li class="program0">
                                <p>
                                    <a th:text="${session.name}" href="/user/userinfo"></a>
                                <div id="zero2" th:if="${session.LOGIN_STATUS} != null"><span class="userInfospan">
                                <a href="/user/userinfo">基本信息</a>
                                <a href="/vip/OpenVip">激活VIP</a>
                                <a href="/user/loginout">立即退出</a>
                                <a th:if="${session.LOGIN_STATUS} =='17873676358'" data-th-href="@{/account/index}">权限管理</a>                            </span>
                                </div>
                                </p>
                                <p>
                                <div id="zero1" th:if="${session.LOGIN_STATUS} == null">
                                    <a href="/account/login">[登录]</a>
                                    <a href="/user/register">[注册]</a>
                                </div>
                                </p> <!---->
                            </li>

                        </ul>
                    </div>
                </div>
                <div class="nav">
                    <div class="container">
                        <div class="logo"><a href="/"><img title="考必胜" data-th-src="@{/images/logo.jpg}" src="../../static/images/logo.jpg"></a>
                        </div>
                        <ul class="navbar">
                            <li><a  data-th-href="@{/user/first}" class="mian-a"><em>首页</em></a></li>
                            <li><a data-th-href="@{/user/occupation}" class="mian-a"><em>生涯规划</em></a>
                                <div><a data-th-href="@{/user/occupation}">职业性格测试</a></div>
                            </li>
                            <li><a data-th-href="@{/recommend}" class="mian-a"><em>志愿填报</em></a>
                                <div><a data-th-href="@{/recommend}">可上大学
                                    <i class="hot"></i></a> <!----> </div>
                            </li>
                            <li><a data-th-href="@{/prediction}" class="mian-a"><em>测试评估</em></a>
                                <div><a data-th-href="@{/prediction}">录取概率测试
                                    <i class="hot"></i></a> <a href="/compare/college">院校对比
                                    <i class="hot"></i></a> </div>
                            </li>
                            <li><a data-th-href="@{/college/collegelist}" class="mian-a"><em>数据查询</em></a>
                                <div><a data-th-href="@{/college/collegelist}">学校大全</a> <a data-th-href="@{/major}">专业大全</a>
                                    <a data-th-href="@{/profession}">职业大全</a>
                                    <a data-th-href="@{/rank}">大学排名</a>
                                    <a data-th-href="@{/batch}">查批次线</a>  </div>
                            </li>
                            <li><a data-th-href="@{/news(type=1,cpage=1)}" class="mian-a"><em>高考资讯</em></a>
                                <div><a data-th-href="@{/news(type=1,cpage=1)}">热门资讯</a> <a
                                        data-th-href="@{/news(type=2,cpage=1)}">高考资讯</a> <a
                                        data-th-href="@{/news(type=3,cpage=1)}">院校动态</a> <a
                                        data-th-href="@{/news(type=4,cpage=1)}">招生政策</a></div>
                            </li>
                        </ul>
                        <div  class="vip">
                            <a href="/vip/OpenVip">
                                开通VIP
                            </a>
                        </div>
                        <div class="secher">
                            <form data-th-action="@{/search}" method="get" data-v-b8c29c26>
                                <input type="string" name="keyword"
                                       placeholder="/ 找大学 / 找专业 / 搜职业"
                                       class="f14" data-v-b8c29c26>
                                <input type="hidden" name="type" value="1">
                                <button type="submit" data-v-b8c29c26></button>
                            </form>
                        </div>
                    </div>
                </div>
            </div> <!---->
            <div>
                <div data-v-1b705696="" class="pageBanner page6"></div>
                <div data-v-1b705696="" class="path container">
                    <ul data-v-b62a9f34="" data-v-1b705696="">
                        <li ><a href="/user/first">首页</a> <span>&nbsp;&gt;&nbsp;&nbsp;</span></li>
                        <li ><a href="/compare/college">院校对比</a> <!----></li>
                    </ul>
                </div>



                <div  class="p-contrast container">
                    <ul  class="newsTit">
                        <li  class="active">院校对比</li>
                    </ul>
                    <table  class="table table-hover table-center ver-middle" id="maintable">
                        <thead>
                        </thead>
                        <tbody >
                        <tr >
                            <td >院校</td>
                            <td  width="235"><!---->
                                <input type="button" class="btn btn-primary" qqq="1" onclick="addcollege(this)" value="添加院校"></td>
                            <td  width="235"><!---->
                                <input type="button" class="btn btn-primary" qqq="2" onclick="addcollege(this)" value="添加院校"></td>
                            <td  width="235"><!---->
                                <input type="button" class="btn btn-primary" qqq="3" onclick="addcollege(this)" value="添加院校"></td>
                            <td width="235"><!---->
                                <input type="button" class="btn btn-primary" qqq="4" onclick="addcollege(this)" value="添加院校"></td>
                        </tr>
                        <tr >
                            <td  class="tipsLeft">学校名称</td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                        </tr>
                        <tr >
                            <td  class="tipsLeft">所在省份</td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td  class="tipsLeft">所在城市</td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td  class="tipsLeft">院校类型</td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td  class="tipsLeft">办学性质</td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td  class="tipsLeft">学校批次</td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td  class="tipsLeft">985</td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                        </tr>
                        <tr><td  class="tipsLeft">硕士点</td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td  class="tipsLeft">博士点</td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td  class="tipsLeft">官方网站</td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                        </tr>
                        <tr>
                            <td  class="tipsLeft">中国大学排名</td>
                            <td></td>
                            <td></td>
                            <td></td>
                            <td></td>
                        </tr>
                        </tbody>
                    </table>
                    </div>
                </div>


<!--                弹窗出现院校-->
                <div name="addcollege" id="addcollege"  class="dialog-mask" style="display: none">
                    <div class="dialog">
                        <div class="close"></div>
                        <div class="dialogs"><h4>请选择需要对比的院校：</h4>
                            <div style="display: inline" id="closebutton"><a class="btn btn-primary" onclick="closecollege()">关闭</a></input>
                            </div>
                        </div>
                        <div class="table-p">
                            <table id="smalltable" border="2">
                                <thead>
                                    <tr>
                                        <th width="32%">学校名称</th>
                                        <th width="32%">类型</th>
                                        <th width="32%">省份</th>
                                        <th width="100%">操作</th>
                                    </tr>
                                </thead>
                                <tbody id="schooltbody">
                                </tbody>
                                <div style="display: none" id="asd"></div>
                            </table>
                        </div>
                    </div>
                </div>
            </div> <!----> <!---->
        <!--表尾表尾表尾-->
        <div class="footer clearfix">
            <div class="container links">
                <div class="left-cols">
                    <div class="col">
                        <ul>
                            <li>关于我们</li>
                            <li><a href="https://www.hongmaoxueyuan.com/">公司介绍</a></li>
                            <li><a href="https://www.hongmaoxueyuan.com/">联系我们</a></li>
                        </ul>
                    </div>

                    <div class="col">
                        <ul>
                            <li>官方声明</li>
                            <li><a href="#">服务条款</a></li>
                            <li><a href="#">免责声明</a></li>
                            <li>&nbsp;</li>
                        </ul>
                    </div>
                    <div class="col">
                        <ul></ul>
                    </div>
                    <div class="col">
                        <ul>
                            <li>推荐功能</li>
                            <li><a href="/user/character">录取概率测试</a> <i class="fa fa-diamond" style="color:#ffed22"></i></li>
                            <li><a href="/compare/college">院校对比</a></li>
                            <li><a data-th-href="@{/news(type=2,cpage=1)}">高考咨讯</a></li>
                        </ul>
                    </div>

                    <div class="col" style=" width: 180px;">
                        <ul>
                            <li>联系我们</li>
                            <li>400 客服：400-0680-068</li>
                            <li>客服电话：13762039986</li>
                            <li>微信号码：13762039986</li>
                            <li>Q Q号码： 2692704614</li>
                        </ul>
                    </div>
                </div>
                <div class="right-cols">
                    <div class="col"><img src="../images/vx.jpg">
                        <p>微信官方客服</p></div>
                    <div class="col"><img src="../images/QQ.png">
                        <p>QQ官方客服1</p></div>
                    <div class="col"><img src="../images/QQ.png">
                        <p>QQ官方客服2</p></div>
                </div>
            </div>
        </div>
        </div>
    </div>
    <!--弹窗选择大学-->
    <script type="text/javascript">
        function addcollege(obj) {
            let m = obj.getAttribute("qqq");
            var add = document.getElementById("addcollege");
            add.style.display = "block";
            if(document.getElementById("asd").innerHTML != "") {
                return;
            }
            $.ajax({
                type:'GET',
                dataType: 'json',
                url: '/compare/addcollege',
                success: function (data) {
                    var newdata = JSON.stringify(data);
                    var newnewdata = eval("(" + newdata + ")");
                    var $tbody = $("#schooltbody");
                    for (i = 0; i < data.length; i++) {
                        $tbody.append("<tr>");
                        $tbody.append("<td align='center'>" + newnewdata[i].coName + "</td>");
                        $tbody.append("<td align='center'>" + newnewdata[i].coCategory + "</td>");
                        $tbody.append("<td align='center'>" + newnewdata[i].coPrid + "</td>");
                        $tbody.append("<td><input type='button'  class='btn btn-primary' myid='" + newnewdata[i].coId + "' onclick='chooseit(this)' value='加入对比'></td>");
                        $tbody.append("</tr>");
                    }
                }
            });
            document.getElementById("asd").innerHTML = "aaa";
        }
        </script>
        <script>
        function closecollege() {
            var add2 = document.getElementById("addcollege");
            add2.style.display = "none";
        }

        <!--选择学校，即点击了加入对比-->
        function chooseit(obj) {
            let coid = obj.getAttribute("myid");
            $.ajax({
                type:'GET',
                url:"/compare/chooseschool/"+coid,
                dataType: 'json',
                success: function (data) {
                    // 转换为json数组形式
                    var data1 = JSON.stringify(data);
                    var data2 = eval("(" + data1 + ")");
                    var tableId = document.getElementById("maintable");
                    //alert("?"+tableId.rows[2].cells[i].innerHTML);
                    for(i=1;i< tableId.rows.item(0).cells.length;i++) {
                        if(tableId.rows[2].cells[i].innerHTML == "") {
                            inputTdValue(i);
                            return;
                        }
                    }
                    function inputTdValue(m){
                        // 将数据插入每行第m列
                            tableId.rows[1].cells[m].innerHTML = data2[0].coName;
                            tableId.rows[2].cells[m].innerHTML = data2[0].coPrid;
                            tableId.rows[3].cells[m].innerHTML = data2[0].coCity;
                            tableId.rows[4].cells[m].innerHTML = data2[0].coCategory;
                            tableId.rows[5].cells[m].innerHTML = data2[0].coType;
                            tableId.rows[6].cells[m].innerHTML = data2[0].coLevel;
                            tableId.rows[7].cells[m].innerHTML = data2[0].coFeatures;
                            tableId.rows[8].cells[m].innerHTML = data2[0].coDoctor;
                            tableId.rows[9].cells[m].innerHTML = data2[0].coMaster;
                            tableId.rows[10].cells[m].innerHTML = data2[0].coWebsite;
                            tableId.rows[11].cells[m].innerHTML = data2[0].coRanking;
                    }
                }
            });
        }
    </script>
    </body>
    <style type="text/css">
        #addcollege{
            position: absolute;
            left: 230px;
            top: 150px;
        }
        #closebutton{
            position: absolute;
            left: 1030px;
            top:30px;
        }
    </style>
</html>